package cn.edu.sanxiau.www.servier.impl;

import cn.edu.sanxiau.www.dao.UserRoleDao;
import cn.edu.sanxiau.www.dao.impl.UserRoleDaoImpl;
import cn.edu.sanxiau.www.model.UserRole;
import cn.edu.sanxiau.www.servier.UserRoleService;

public class UserRoleServiceImpl implements UserRoleService {
    //注入数据访问对象
    UserRoleDao userRoleDao = new UserRoleDaoImpl();

    @Override
    public int addUserRoleByUserRole(UserRole userRole) {
        return userRoleDao.addUserRoleByUserRole(userRole);
    }

    @Override
    public int deleteUserRoleByUser_id(int user_id) {
        return userRoleDao.deleteUserRoleByUser_id(user_id);
    }
}
